package com.system.enterprisemanagementsystem.service;

import com.system.enterprisemanagementsystem.pojo.PageResult;
import com.system.enterprisemanagementsystem.pojo.Student;
import com.system.enterprisemanagementsystem.pojo.StudentQueryParam;

import java.util.List;

public interface StudentService {

    /**
     * 条件分页查询
     * @param studentQueryParam
     * @return
     */
     PageResult page(StudentQueryParam studentQueryParam);

     Student getStudentById(int id);

     void updateStudent(Student student);

    /**
     * 批量删除学员
     * @param ids 学员ID列表
     */
    void deleteStudentsByIds(List<Integer> ids);

    /**
     * 处理违纪扣分
     * @param studentId
     * @param score
     */
    void handleViolation(Integer studentId, Integer score);

    /**
     * 添加学生
     * @param student
     */
    void addStudent(Student student);


}
